<html>
    <head>
        <title>Gder</title>

        <script>
        function face()
                    {
                    window.location.href="http://baidu.com";
                }
        </script>
    </head>

    <body>
        <h1>haha</h1>

        <input id="name"/>

        <input id="idCard"/>
        

        <button id="btn" onclick="face()"/>
    </body>
</html>